﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace br.nrtech.restaurante.dao
{
    public static class Sessions
    {
        private static ISession sessao;
        public static ISession getSession()
        {
            if (sessao == null || !sessao.IsOpen)
                sessao = SessionManager.OpenSession();

            return sessao;
        }
    }
}
